<?php

$Stacktrace = "empty";

        if ( $_GET['StackTrace'] == "" ) {
                die($Stacktrace);
        }
	
	if( $_SERVER['REMOTE_ADDR'] == "" ){
    		die($_SERVER['REMOTE_ADDR']);
	}	

	$to = "dave@thepackhams.com";
	//$to = "dave.packham@utah.edu";
	$subject = "Exception from "; 
	$body = $_GET['StackTrace'];
	$remoteip = $_SERVER['REMOTE_ADDR'];
 	$hostname = gethostbyaddr($_SERVER['REMOTE_ADDR']);	

	mail($to, $subject." ".$remoteip, $hostname."\n ".$body, "From: \"Bugs\"<bugs@thepackhams.com>");
?>
